package red.mlz.appconsumer.feign.sms;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sms-service")
public interface SmsFeign {

    //同步发送
    @RequestMapping("/sync-send")
    String syncSend(@RequestParam("phone") String phone);

    //批量发送
    @RequestMapping("/batch-send")
    String batchSend(@RequestParam String phone);

    //异步发送
    @RequestMapping("/async-send")
    String asyncSend(@RequestParam("phone") String phone);
}
